package com.bcbim.operation_maintenance_interface.table_head.service;

import com.bcbim.operation_maintenance_interface.table_head.dao.SpaceTableHeadDAO;
import com.bcbim.operation_maintenance_interface.table_head.dto.TableCheckDTO;
import com.bcbim.operation_maintenance_interface.table_head.vo.SpaceTableHeadVO;

import java.util.List;

/**
 * @version V 1.0.0
 * @Description：空间信息表头设置service
 * @Author: haomeijie
 * @Date: 2022/3/9 9:45
 **/
public interface SpaceTableHeadService {
    /**
     * 判断用户是否设置过表头
     *
     * @param spaceTableCheckDTO
     * @return boolean
     * @Author: haomeijie
     * @Date: 2022/3/9 9:49
     */
    boolean checkSpaceTableHeadByUserId(TableCheckDTO spaceTableCheckDTO);

    /**
     * 查询表头设置列表
     *
     * @param spaceTableCheckDTO
     * @return List<SpaceTableHeadVO>
     * @Author: haomeijie
     * @Date: 2022/3/9 9:50
     */
    List<SpaceTableHeadVO> listSpaceTableHead(TableCheckDTO spaceTableCheckDTO);

    /**
     * 根据用户新增表头设置
     *
     * @param list
     * @return int
     * @Author: haomeijie
     * @Date: 2022/3/9 10:32
     */
    int batchInsertSpaceTableHead(List<SpaceTableHeadDAO> list);

    /**
     * 根据用户修改表头设置
     *
     * @param list
     * @return int
     * @Author: haomeijie
     * @Date: 2022/3/9 10:32
     */
    int batchUpdateSpaceTableHeadCheck(List<SpaceTableHeadDAO> list);

    /**
     * 根据用户修改表头设置取消勾选
     *
     * @param spaceTableCheckDTO
     * @return int
     * @Author: haomeijie
     * @Date: 2022/3/9 10:32
     */
    int batchNoChecked(TableCheckDTO spaceTableCheckDTO);
}
